package com.crm.controller;

import com.crm.base.BaseController;
import com.crm.domain.entity.SaleChance;
import com.crm.result.Result;
import com.crm.service.SaleChanceService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 营销机会控制器
 */

@RestController
@RequestMapping("/sale-chance")
public class SaleChanceController extends BaseController<SaleChanceService, SaleChance> {

    // 开发结果
    @RequestMapping("/dev-result")
    public Result<Boolean> devResult(SaleChance s) {
        return baseService.devResult(s) ? Result.success() : Result.failure();
    }
}
